package com.agen.basenet.annotation

import com.agen.basenet.data.ServiceParam

object ServiceUtil {

    fun <T> getServiceConfig(clazz: Class<T>): ServiceParam {
        val serviceConfig: ServiceConfig? = clazz.getAnnotation(ServiceConfig::class.java)
        return ServiceParam(baseUrl = serviceConfig?.baseUrl ?: "")
    }

}